module.exports = function(sequelize, DataTypes) {
  return sequelize.define('cosmeticsRecommend', {
    detailId: {
      type: DataTypes.STRING,
      field: 'detailId',
      allowNull: true
    },
    classify: {
      type: DataTypes.STRING,
      field: 'classify',
      allowNull: true
    },
    type: {
      type: DataTypes.STRING,
      field: 'type',
      allowNull: false
    },
    active: {
      type: DataTypes.BOOLEAN,
      field: 'active',
      allowNull: false
    },
    createAt: {
      type: DataTypes.STRING,
      field: 'create_at',
      allowNull: false,
      default: () => {
        return new Date
      }
    }
  },
  {
    tableName: 'cosmetics_recommend'
  })
}